package com.ruoyi.yipaiju.mapper;

import java.util.List;
import com.ruoyi.yipaiju.domain.Favorite;
import org.apache.ibatis.annotations.Param;

/**
 * fo_favoriteMapper接口
 * 
 * @author liuwp
 * @date 2023-03-01
 */
public interface FavoriteMapper 
{
    /**
     * 查询fo_favorite
     * 
     * @param id fo_favorite主键
     * @return fo_favorite
     */
    public Favorite selectFavoriteById(Long id);

    /**
     * 查询fo_favorite列表
     * 
     * @param favorite fo_favorite
     * @return fo_favorite集合
     */
    public List<Favorite> selectFavoriteList(Favorite favorite);

    /**
     * 可以业务主键查询一条fo_favorite
     *
     * @param favorite fo_favorite
     * @return fo_favorite集合
     */
    public Favorite selectOneFavorite(Favorite favorite);

    /**
     * 新增fo_favorite
     * 
     * @param favorite fo_favorite
     * @return 结果
     */
    public int insertFavorite(Favorite favorite);

    /**
     * 修改fo_favorite
     * 
     * @param favorite fo_favorite
     * @return 结果
     */
    public int updateFavorite(Favorite favorite);

    /**
     * 条件修改fo_favorite
     *
     * @param favorite fo_favorite
     * @param favorite fo_favorite条件
     * @return 结果
     */
    public int updateFavoriteCondition(@Param("favorite") Favorite favorite, @Param("favoriteCondition") Favorite favoriteCondition);

    /**
     * 删除fo_favorite
     * 
     * @param id fo_favorite主键
     * @return 结果
     */
    public int deleteFavoriteById(Long id);

    /**
     * 条件删除fo_favorite
     *
     * @param favorite fo_favorite
     * @return 结果
     */
    public int deleteFavoriteByCondition(Favorite favorite);

    /**
     * 批量删除fo_favorite
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFavoriteByIds(Long[] ids);

    List<Favorite> selectFavoritesHouseInfo(Favorite favorite);
}
